import api from '@/api'

export default {
    namespaced: true,
    actions: {
        async searching({rootState}, data = {}) {
            console.log(rootState)
            const res = await api.SYSTEM_MENU_SEARCHING(data)
            return res
        },
        async create({rootState}, data = {}) {
            console.log(rootState)
            const res = await api.SYSTEM_MENU_CREATE(data)
            return res
        },
        async loadChoosableMenu({rootState}, data = {}) {
            rootState==null
            const res = await api.SYSTEM_MENU_LOAD_CHOOSABLE_MENU(data)
            return res
        }
    }
}